<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title></title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/indexSecond.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/assets/css/dropzone.css" />
</head>
<body>
<div class="container-fluid" style="padding: 0;position:relative;">
	<img src="<%=request.getContextPath()%>/img/logo5.png" alt="logo" class="img-responsive">
	<nav class="navbar  navbar-fixed-top" style="position:absolute;" role="navigation" id="head">
		<div class="container clearfix">
			<!-- Collapsed navigation -->
	        <div class="navbar-header">
	            <!-- Expander button -->
	            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
	                <span class="sr-only">Toggle navigation</span>
	                <span class="icon-bar"></span>
	                <span class="icon-bar"></span>
	                <span class="icon-bar"></span>
	            </button>
	        </div>
	        <div class="navbar-collapse collapse" id="navbar">
	        	<!-- Main navigation -->
	        	<ul class="nav navbar-nav">
					<li style="border-bottom: 3px solid #fff;"><a href="<%=request.getContextPath()%>/index.do" style="color:#fff">首页</a></li>
					<li><a href="<%=request.getContextPath()%>/xqq.do">心情墙</a></li>
					<li><a href="<%=request.getContextPath()%>/xdjm.do">兄弟姐妹</a></li>
					<li><a href="<%=request.getContextPath()%>/jqhd.do">近期活动</a></li>
					<li><a href="<%=request.getContextPath()%>/yqlj.do">友情链接</a></li>
				</ul>
				<c:choose>
				<c:when test="${change=='0'}">
					<form action="" class="navbar-form navbar-right">
						<a data-toggle="modal" data-target="#myModal" class="btn btn-primary" href="">登录</a>
	                    <a class="btn btn-primary signup" href="">注册</a>
					</form>
				</c:when>
				<c:when test="${change=='1'}">
					<div class="after-login navbar-right">
						<div  class="col-sm-12 col-xs-12">
							<p>您好,用户:${member.membername}</p>
						</div>
						<div  class="modify col-sm-12 col-xs-12">
							<a data-toggle="modal" data-target="#changePsdModal" href="#">修改密码</a>
							<a data-toggle="modal" data-target="#changeMsgModal" href="#">修改信息</a>
							<a href="<%=request.getContextPath()%>/outlogin.do">注销</a>
						</div>
					</div>
				</c:when>
			 	<c:when test="${change=='2'}">
					<div class="after-login navbar-right">
						<div  class="col-sm-12 col-xs-12">
							<p>您好,管理员:${member.membername}</p>
						</div>
						<div  class="modify col-sm-12 col-xs-12">
							<a data-toggle="modal" data-target="#changePsdModal" href="#">修改密码</a>
							<a data-toggle="modal" data-target="#changeMsgModal" href="#">修改信息</a>
							<a href="<%=request.getContextPath()%>/outlogin.do">注销</a>
						</div>
					</div>
				</c:when>
				</c:choose>
	        </div>
		</div>
	</nav>
	<a class="a-style" href="<%=request.getContextPath()%>/aboutus.do">关于我们</a>
		<div class="mood" style="width:8.2%;height: 13%;top: 72.41%;left: 15.2%;"></div>
		<div class="out">
			<div class="float" style="left:10.54%;">
				<p>在这里，你将会贴近我们的学习生活，并且了解我们的学习状态！！</p>
			</div>
			<div class="arrow" style="left:17.5%;"></div>
		</div>
		<div class="mood" style="width:9.0%;left: 36.30%;"></div>
		<div class="out">
			<div class="float" style="left:32.3%;">
				<p>在这里，你将知道我们的班级是多么团结！！！</p>
			</div>
			<div class="arrow" style="left:39.3%"></div>
		</div>
		<div class="mood" style="width:9.0%;left: 58%;"></div>
		<div class="out">
			<div class="float" style="left:54%;">
				<p>我们会把近期的活动放在这个地方 </p>
			</div>
			<div class="arrow" style="left:61%"></div>
		</div>
		<div class="mood" style="width:8.7%;left: 80.15%;"></div>
		<div class="out">
			<div class="float" style="left:75.50%;">
				<p>在这里，你将会看到我们的班级对活动的热情！！！</p>
			</div>
			<div class="arrow" style="left: 82.5%"></div>
		</div>
</div>
<div class="modal fade"  tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" id="myModal" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header clearfix">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<img src="<%=request.getContextPath()%>/img/class-logo.png" class="img">
				<h1 class="modal-title" id="myModalLabel">登录</h1>
			</div>
			<form enctype="multipart/form-data" method="post" action="<%=request.getContextPath()%>/login.do">
				<div class="modal-body"> 
					<p><label>用户昵称:</label><input name="username" type="text" placeholder="请输入登录名或邮箱" class="user"></p>
					<p><label>密码:</label><input name="password" type="password" placeholder="请输入密码" class="user"></p>
				</div>
				<div class="modal-footer">
					<button type="submit" class="btn btn-default">登录</button>
				</div>
			</form>
		</div>
	</div>
</div>
<div class="modal fade"  tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" id="changePsdModal" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header clearfix">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h1 class="modal-title" id="myModalLabel">修改密码</h1>
			</div>
			<form enctype="multipart/form-data" method="post" action="<%=request.getContextPath()%>/fixpassword.do">
				<div class="modal-body"> 
					<p><label>登录密码:</label><input name="password" type="password" placeholder="请输入登录密码" class="user"></p>
					<p><label>重置登录密码:</label><input name="newpassword" type="password" placeholder="请输入重置的密码" class="user"></p>
					<p><label>E-mail:</label><input name="email" type="text" placeholder="请输入E-mail" class="user"></p>
					<p><label>手机号码:</label><input name="phone" type="text" placeholder="请输入手机号码" class="user"></p>
				</div>
				<div class="modal-footer">
					<button type="submit" class="btn btn-default">确定修改</button>
				</div>
			</form>
		</div>
	</div>
</div>
<div class="modal fade"  tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" id="changeMsgModal" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header clearfix">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h1 class="modal-title" id="myModalLabel">修改信息</h1>
			</div>
			<form enctype="multipart/form-data" method="post" action="<%=request.getContextPath()%>/fixinfo.do">
				<div class="modal-body"> 
					<p><label>用户昵称:</label><input name="membername" type="text" placeholder="请输入新的用户昵称" class="user" id="name" value="${member.membername }"></p>
					<p class="clearfix"><label style="float:left;">照片:</label><input name="file" type="file"  class="user" style="float:left;" id="photo"></p>
					<p><label>QQ:</label><input name="qq" type="text" placeholder="请输入新的QQ号" class="user" value="${member.qq}"></p>
					<p><label>微信:</label><input name="weixing" type="text" placeholder="请输入新的微信" class="user" value="${member.weixing }"></p>
					<p><label>微博:</label><input name="weibo" type="text" placeholder="请输入新的微博" class="user" value="${member.weibo }"></p>
					<p><label>座右铭:</label><input name="motto" type="text" placeholder="请输入新的座右铭" class="user" value="${member.motto }"></p>
					<p><label>自我介绍:</label><input name="introduce" type="textarea" placeholder="请输入新的自我介绍" class="user" value="${member.introduce }"></p>
				</div>
				<div class="modal-footer">
					<button type="submit" class="btn btn-default" id="btn">确定修改</button>
				</div>
			</form>
		</div>
	</div>
</div>
<div class="container clearfix ">
	<div class="col-sm-4 col-xs-12" style="padding: 20px 0px;">
		<img src="<%=request.getContextPath()%>/img/bottle.png" alt="bottle" class="col-sm-4 col-xs-3">
		<div class="col-sm-8 col-xs-8" style="padding: 0;">
			<h1>班级成果</h1>
			<p>我们的一切努力都是为了共同的荣耀</p>
		</div>
	</div>
	<div class="col-sm-8 clearfix col-xs-12">
		<div class="col-sm-12 col-xs-12" style="padding-bottom: 20px;border-bottom: 2px solid #ea9b83;">
			<h1 class="col-sm-4"><a href="<%=request.getContextPath()%>/index/toclass.do">班级荣誉</a></h1>
			<h1 class="col-sm-4"><a href="<%=request.getContextPath()%>/index/toperson.do">个人荣誉</a></h1>
		</div>
		<div  class="col-sm-12" style="background:#FC9330">
			<div class="col-sm-4" >
				<p>获奖日期</p>
			</div>
			<div class="col-sm-4">
				<p>项目名称</p>
			</div>
			<div class="col-sm-4">
				<p>获奖名称</p>
			</div>
		</div>
		<c:forEach items="${CA}" var="ca">
		<div  class="col-sm-12">
			<div class="col-sm-4">
				<p>${ca.pricetime}</p>
			</div>
			<div class="col-sm-4">
				<p>${ca.achievementname}</p>
			</div>
			<div class="col-sm-4">
				<p>${ca.price}</p>
			</div>
		</div>
		</c:forEach>
	</div>
</div>
<div class="container clearfix" style="padding: 40px 0px;">
	<div class="col-sm-4 col-xs-12 clearfix" style="padding:20px 0px;">
		<img src="<%=request.getContextPath()%>/img/message.png" alt="bottle" class="col-sm-4 col-xs-3">
		<div class="col-sm-8 col-xs-8" style="padding: 0;">
			<h1>新闻公告</h1>
			<p>好事早知道 急事不能忘 没事多看看</p>
		</div>
	</div>
	<ul class="col-sm-8 col-xs-12 clearfix">
		<c:forEach items="${news}" var="p">
		<li class="col-sm-12 clearfix" style="padding-bottom: 20px;border-bottom:2px solid #ccc;">
			<a href="javascript:void(0)" style="float: left;"><img src="<%=request.getContextPath()%>/${p.picture}" ></a>
			<a href="<%=request.getContextPath()%>/getdetailofnews.do?newid=${p.newid}"><p class="col-sm-6 col-xs-6">${p.title}</p></a>
			<p class="col-sm-3 col-sm-offset-1">${p.newstime}</p>
		</li>
		</c:forEach>
		<c:choose>
		<c:when test="${change=='2'}">
		<li class="col-sm-3 col-xs-4 col-sm-offset-8 col-xs-offset-7">
			<a href="<%=request.getContextPath()%>/admin/manageNews.do">管理新闻</a>
		</li>
		</c:when>
		<c:when test="${manage=='0'}">
		<li class="col-sm-3 col-xs-4 col-sm-offset-8 col-xs-offset-7">
			<a href="<%=request.getContextPath()%>/admin/manageNews.do">管理新闻</a>
		</li>
		</c:when>
		</c:choose>
		
	</ul>
</div>
<div class="container-fluid" style="height: 100px;background-color: #3960a4;width: 100%;"></div>
<script  src="<%=request.getContextPath()%>/js/jquery-2.1.4.js"></script>
<script  src="<%=request.getContextPath()%>/js/bootstrap.js"></script>
<script  src="<%=request.getContextPath()%>/js/msgtest.js"></script>
<script  src="<%=request.getContextPath()%>/js/index.js"></script>
${errorInfo}
${errorInfo}
</body>
</html>